A New Method to Detect Gapped Code Clones
نویسندگان
چکیده
It is generally said that code clone is a factor to make software maintenance difficult. A code clone is the set of code portions in source files that are identical or similar to another. If we make some changes in such a code portion, it might be necessary to apply the same changes in its clones. A code clone introduced by ‘copy-and-paste ’reusing tends to have gaps because the developer often modifies the code portion after pasting. This paper proposes a new method to detect clones including gaps. In a case study, we confirm the efficiency of the method.
منابع مشابه
On Detection of Gapped Code Clones using Gap Locations
It is generally said that code clone is one of the factors to make software maintenance difficult. A code clone is a code portion in source files that is identical or similar to another. Clones are introduced because of various reasons such as reusing code by ‘copy-and-paste’ and so on. Since developers usually modify the copied-and-pasted code portions, there are some gaps between the original...
متن کاملGenerating Gapped Code Clone Information using Graph Mining Algorithm
At present, various kinds of code clone detection techniques have veen proposed. However, most of them cannot detect gapped code clones, which are ones that includes non-duplicated segments to its correspondant code clones. In this paper, we propose a method generating gapped code clone information from a detection result of existing code clone detection tools. The method adopts AGM (Apriori-ba...
متن کاملMapping Code Clones Using Incremental Clone Detection
Understanding the evolution of duplicated source code is necessary to investigate the phenomenon of cloning. To trace individual code clones across multiple program versions, clones of consecutive versions need to be mapped. Current methods detect clones of different versions first and then map detected clones retroactively. I present an approach to map individual clones between consecutive pro...
متن کاملA Novel Metrics Based Technique for Code Clone Detection
Nowadays, software development is a tricky and time-consuming task. In order to make the development easy, one uses the existing modules with or without a bit change. Modules which are used with or without changes are called as code clones. In several places in case of same or different software, a clone can be used for development purpose. Without having care, copy and paste code can lead to i...
متن کاملMethod-level code clone detection for java through hybrid approach
A Software clone is an active research area where several researchers have investigated techniques to automatically detect duplicated code in programs. However their researches have limitations either in finding the structural or functional clones. Moreover, all these techniques detected only the first three types of clones. In this paper, we propose a hybrid approach combining metric-based app...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2003